
app.filter('mediaScreen', ["$window", function ($window) {

    var dataUrl = /^\s*data:image/;

    return function (src) {
        if (!src) return null;
        if (src.match(dataUrl)) return src;
        return src + "/w" + $window.screen.width + "h" + $window.screen.height;
    };
} ]);
